<template>
  <div class="box">
    <el-form size="medium"  ref="userForm" label-width="100px">
      
      <el-form-item label="分类名称">
        <el-input placeholder="请输入分类名称" v-model="obj.name"></el-input>
      </el-form-item>

      <el-form-item label="启用虚拟销量">
        <el-radio-group v-model="obj.status">
          <el-radio :label="1">启用</el-radio>
          <el-radio :label="0">禁用</el-radio>
        </el-radio-group>
      </el-form-item>
     
      <el-form-item>
        <el-button type="primary" @click="saveData">保存数据</el-button>
      </el-form-item>
    </el-form>
  </div>

</template>
<script>
import { 
  addArticleCate,
  editArticleCate
} from '@/api/mall/article';
export default {
  name: 'itemArticle',
  data() {
    return {
      // obj: {
      //   update_time: '',
      //   id: '',
      //   audit: '',
      //   audit_remark: ""
      // },
      isLoading: false
    }
  },
  props: {
    obj:{
      type:Object,
      default:function(){
        return {};
      }
    }
  },
  computed: {},
  methods: {}
}
</script>

<style lang="scss" scoped>
.el-input {
  width: 270px;
}

.box {
  width: 100%;
  /*padding: 60px;
  height: calc(100vh - 77px);
  overflow: scroll;*/
}
</style>
